package cn.kent.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import static cn.kent.config.FileProperties.PREFIX;

/**
 * @author SunChenpeng
 * @date 2021/11/23 9:55
 */
@Component
@ConfigurationProperties(prefix = PREFIX)
public class FileProperties {
    public static final String PREFIX = "file";
    private String uploadPath;
    private String urlPrefix;

    public String getUrlPrefix() {
        return urlPrefix;
    }

    public void setUrlPrefix(String urlPrefix) {
        this.urlPrefix = urlPrefix;
    }

    public String getUploadPath() {
        return uploadPath;
    }

    public void setUploadPath(String uploadPath) {
        this.uploadPath = uploadPath;
    }
}
